package utils;

public class Common {

	public static String noExtensions(String fileName){
		int dotInd = fileName.lastIndexOf('.');

	      // if dot is in the first position,
	      // we are dealing with a hidden file rather than an extension
	      return (dotInd > 0 && dotInd < fileName.length()) ? fileName
	              .substring(0,dotInd) : null;
	}
//	public static String fuzzy(String fileName){
//		int dotInd = fileName.;
//		
//		// if dot is in the first position,
//		// we are dealing with a hidden file rather than an extension
//		return (dotInd > 0 && dotInd < fileName.length()) ? fileName
//				.substring(0,dotInd) : null;
//	}
	
}
